/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * Author: zhaosj
 * Date: 2011-2-15 上午09:36:53
 */
package com.util;

import java.util.UUID;

/**
 * @author zhaosj
 * 
 */
public class UUIDGenerator {

	public UUIDGenerator() {
	}

	public static String getUUID() {
		UUID uuid = UUID.randomUUID();
		String str = uuid.toString();

		// 去掉"-"符号
		str = str.replaceAll("-", "");

		return str.toUpperCase();
	}

	public static void main(String[] args) {
		System.out.println(getUUID());
	}

}
